function fis = remake(file,x,fis,Range)
fis.Inputs(1).Range = Range.e;
fis.Inputs(2).Range = Range.ec;
Range.Kp =mean(Range.Kp)+diff(Range.Kp)/2*x(1).*[-1 1];
Range.Ki =mean(Range.Ki)+diff(Range.Ki)/2*x(1).*[-1 1];
Range.Kd =mean(Range.Kd)+diff(Range.Kd)/2*x(1).*[-1 1];
fis.Outputs(1).Range = Range.Kp;
fis.Outputs(2).Range = Range.Ki;
fis.Outputs(3).Range = Range.Kd;
e = linspace(Range.e(1),Range.e(2),7);
ec = linspace(Range.ec(1),Range.ec(2),7);
Kp = linspace(Range.Kp(1),Range.Kp(2),7);
Ki = linspace(Range.Ki(1),Range.Ki(2),7);
Kd = linspace(Range.Kd(1),Range.Kd(2),7);
%重新调整隶属度函数的范围
for i=1:7
    fis.Inputs(1).mf(i).Parameters = e(i)       +[-diff(Range.e)/6 0 diff(Range.e)/6];
    fis.Inputs(2).mf(i).Parameters = ec(i)      +[-diff(Range.ec)/6 0 diff(Range.ec)/6];
    fis.Outputs(1).mf(i).Parameters = Kp(i) +[-diff(Range.Kp)/6 0 diff(Range.Kp)/6];
    fis.Outputs(2).mf(i).Parameters = Ki(i)  +[-diff(Range.Ki)/6 0 diff(Range.Ki)/6];
    fis.Outputs(3).mf(i).Parameters = Kd(i) +[-diff(Range.Kd)/6 0 diff(Range.Kd)/6];
end
end